package com.shigu.address.bo;

import com.shigu.MallRequest;
import com.shigu.TokenRequest;
import com.shigu.annotations.PhoneCheck;
import com.shigu.validation.tags.Telephone;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

public class AddAddressRequest extends TokenRequest {

    @NotNull(message = "请选择省")
    private Long provId;
    @NotNull(message = "请选择市")
    private Long cityId;
    @NotNull(message = "请选择区或县")
    private Long areaId;

    @NotEmpty(message = "收件人不能为空")
    private String receiveName;
    @PhoneCheck
    @NotEmpty(message = "电话号码不能为空")
    private String receiveTelephone;
    @NotEmpty(message = "具体收货地址不能为空")
    private String receiveAddress;
    @NotNull(message="没有设置是否默认")
    private boolean imDefault;

    @NotNull
    public Long getProvId() {
        return provId;
    }

    public void setProvId(@NotNull Long provId) {
        this.provId = provId;
    }

    @NotNull
    public Long getCityId() {
        return cityId;
    }

    public void setCityId(@NotNull Long cityId) {
        this.cityId = cityId;
    }

    @NotNull
    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(@NotNull Long areaId) {
        this.areaId = areaId;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceiveTelephone() {
        return receiveTelephone;
    }

    public void setReceiveTelephone(String receiveTelephone) {
        this.receiveTelephone = receiveTelephone;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public boolean isImDefault() {
        return imDefault;
    }

    public void setImDefault(boolean imDefault) {
        this.imDefault = imDefault;
    }
}
